<div class="account-profile">

<link href="<?php echo $this->getSkinUrl('Customerpartner/colorpicker/css/colorpicker.css'); ?>" rel="stylesheet" />
<link href="<?php echo $this->getSkinUrl('Customerpartner/css/account.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->getSkinUrl('Customerpartner/colorpicker/js/colorpicker.js'); ?>"></script>

<div class="page-title">
 <!-- <h1><?php echo Mage::helper('marketplacepartner')->__('Account Information') ?></h1>-->
</div>
<?php echo $this->getMessagesBlock()->getGroupedHtml();
		$data=Mage::getModel('marketplaceprofile/paymentdetail')->getPartnerPaymentDetailById($this->getCustomer()->getId());
	   $partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($this->getCustomer()->getId());    
?>

<div>
		    
</div>
		<ul id="ul_nav">
  				<li id="tab1" class="tabs"><a class="personal">Personal Information</a></li>
  				<li id="tab2" class="tabs"><a class="company"> Shop Profile</a></li>
  				<li id="tab3" class="tabs"><a class="address">Address Book</a></a></li>
		</ul> 
<form action="<?php echo $this->getUrl('marketplaceprofile/account/editpost') ?>" enctype="multipart/form-data" method="post" id="form-validate1">
<!--<form action="' . $_SERVER[PHP_SELF]. '" id="form-customer-product-new">-->
<fieldset class="group-select set_group" id="field1">
    <?php echo $this->getBlockHtml('formkey');    
    ?>
    <h4 class="legend"><?php echo Mage::helper('marketplacepartner')->__('Account Information') ?></h4>

    <ul>
    		<li>
				<div id="companylogo"class="field">
				 <label for="logopic" class="required"> <?php echo Mage::helper('marketplacepartner')->__('Profile Picture') ?> </label>
				 <div class="input-box">
				 	<img id="clogo" class="prev-img" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'.$partner['logopic']; ?>" width="100px" height="100px"/><br />
				 	<input type="file" id="logopic" alt="no image" name="logopic"  title="logopic" class="input-text required-entry" style="display: none;" onchange="readLogo(this);" />
				 	<button type="button" value="Upload" onclick="document.getElementById('logopic').click();" >Upload</button>
				  	<button type="button" class="rem" name="logrem" id="logrem" onclick="removeclog();clearLogoField();"><span class="buttonlabel">Remove</span></button>	 
				</div>
				</div>	 		
    		</li>
    		<hr>
        <li>
            <?php //echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getCustomer())->toHtml() ?>
        </li>
         <li>
            <div class="input-box">
           <label for="email"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Firstname') ?> </label>
            <input type="text" name="firstname" id="firstname" value="<?php echo $partner['firstname'];?>" class="required-entry inputField" />
            </div>
        </li>
         <li>
            <div class="input-box">
           <label for="email"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Lastname') ?> </label>
            <input type="text" name="lastname" id="lastname" value="<?php echo $partner['lastname']; ?>" class="required-entry inputField" />
            </div>
        </li>
        <li>
            <div class="input-box">
           <label for="email"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Partner Email Address') ?> </label>
            <input type="text" name="email" id="email" value="<?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="required-entry validate-email inputField" />
            </div>
        </li>
         <li>
            <div class="input-box">
           <label for="dob"><?php echo Mage::helper('marketplacepartner')->__('Date of Birth') ?> </label>
            <input type="text" name="dob" id="dob" value="<?php echo $partner['dob']; ?>" title="<?php echo $this->__('Date of Birth') ?>" class="inputField" />
            </div>
        </li>
        <hr>
     <h4 class="legend">Bank Details</h4>
     <ul>
    		<li>
				<div class="input-box">
					<input type="hidden" name="paymentsource" />
				</div>
				<div class="input-box">
			        <label for="name"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Bank Name') ?></label>
			        <input type="text" name="bank" id="bank" value="<?php echo $data['name']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Bank Name') ?>" class="input-text required-entry" />
			   </div>
			</li>
			<hr>
			<li>
				<div class="input-box">
			        <label for="account_no"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Account No.') ?></label>
			        <input type="text" name="accountno" id="accountno" value="<?php echo $data['accountno']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Account No') ?>" class="input-text required-entry" />
			   </div>			
			</li>
			<hr>
			<li>
				<div class="input-box">
			        <label for="routing_no"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Routing No.') ?></label>
			        <input type="text" name="routingno" id="routingno" value="<?php echo $data[routingno]; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Routing No') ?>" class="input-text required-entry" />
			   </div>			
			</li>
			<hr>
			<li>
				<div class="input-box">
			        <label for="account_type"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Account Type') ?></label>
			        <input type="text" name="accounttype" id="accounttype" value="<?php echo $data['accounttype']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Account Type') ?>" class="input-text required-entry" />
			   </div>			
			</li>
			<hr>
			<li>
				<div class="input-box">
			        <label for="account_type"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Payment Method') ?></label>
			        <input type="hidden" value="<?php echo $data['paymentmethod']; ?>" id="method" />
					  <select name="paymentmethod" id="payment_method" class="account required-entry">
					  		<option></option>
							<option value="Bank Transfer">Bank Transfer</option>
							<option value="By Check">By Check</option>					  
					  </select>
					  <label class="prof_desc">*Please select your payment method..</label>
			   </div>			
			</li>
			<li>
				<div class="input-box">
				<input type="hidden" name="userid" id="userid" value="<?php echo Mage::getSingleton('customer/session')->getCustomer()->getId(); ?>" title="userid" class="input-text"  />
				</div>
			</li>
		</ul>	
		<hr>

<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
<?php if ($_dob->isEnabled()): ?>
        <li><?php echo $_dob->setDate($this->getCustomer()->getDob())->toHtml() ?></li>
<?php endif ?>
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
<?php if ($_taxvat->isEnabled()): ?>
        <li><?php echo $_taxvat->setTaxvat($this->getCustomer()->getTaxvat())->toHtml() ?></li>
<?php endif ?>
    </ul>
	
	<p>
	<input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo Mage::helper('marketplacepartner')->__('Change Password') ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> /> 
	<label for="change_password"><?php echo Mage::helper('marketplacepartner')->__('Change Password') ?></label>
	</p>
	<fieldset class="group-select set_group" style="display:none">
	    <h4 class="legend"><?php echo Mage::helper('marketplacepartner')->__('Change Password') ?></h4>
	    <ul>
	        <li>
	            <div class="input-box">
	                <label for="current_password"><?php echo Mage::helper('marketplacepartner')->__('Current Password') ?></label>
	                <input type="password" class="input-text" name="current_password" id="current_password" />
	            </div>
	        </li>
	        <li>
	            <div class="input-box">
	                <label for="password"><?php echo Mage::helper('marketplacepartner')->__('New Password') ?></label>
	                <input type="password" class="validate-password input-text" name="password" id="password" />
	            </div>
	            <div class="input-box">
	                <label for="confirmation"><?php echo Mage::helper('marketplacepartner')->__('Confirm New Password') ?></label>
	                <input type="password" class="validate-cpassword input-text" name="confirmation" id="confirmation" />
	            </div>
	        </li>
	    </ul>
	</fieldset>
	<div class="button-set" style="margin:0">
		<p class="required">*<?php echo Mage::helper('marketplacepartner')->__('Required Fields') ?></p>
	    <button type="submit" onclick="return valid1()" class="form-button savemargin btn_save" ><span class="buttonlabel"><?php echo Mage::helper('marketplacepartner')->__('Save') ?></span></button>
	</div>
</fieldset>
</form>
<!-- -------------------------------------------------------------------TAB #2------------------------------------------------------------------------------------ -->
<form action="<?php echo $this->getUrl('customer/account/editProfile') ?>" enctype="multipart/form-data" method="post" id="form-validate2">
<!--<form action="' . $_SERVER[PHP_SELF]. '" id="form-customer-product-new">-->
<fieldset class="group-select set_group" id="field2">
    <?php echo $this->getBlockHtml('formkey');
		$partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($this->getCustomer()->getId());    
    ?>
    <h4 class="legend"><?php echo Mage::helper('marketplacepartner')->__('Profile') ?></h4>				
    		<ul>
 				<div id="companybanner" class="field">
					<label for="bannerpic" class="required"> <?php echo Mage::helper('marketplacepartner')->__('Shop Banner') ?> </label>
					<div class="input-box">
			 			<img id="cban" class="prev-img" alt="<?php echo Mage::helper('marketplacepartner')->__('no image')?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'.$partner['bannerpic'];?>" width="100px" height="100px"/><br />
			 			<input type="file" id="bannerpic" name="bannerpic"  title="bannerpic" class="input-text required-entry" style="display: none;" size="26" onchange="readBanner(this);"/>
			 			<button type="button" value="Upload" onclick="document.getElementById('bannerpic').click();" >Upload</button>
			 			<button type="button" class="rem" name="banrem" id="banrem" onclick="removecban();clearBannerField();"><span class="buttonlabel">Remove</span></button> 
					</div>
				</div>
				<hr>
    				  								
            <div class="input-box">
					<label for="compname" class="required"><span class="required">*</span><?php echo Mage::helper('marketplacepartner')->__('Shop Name') ?></label>
				 	<input type="text" id="compname" name="compname" value="<?php echo $partner['compname']; ?>" title="compname" class="input-text required-entry" /> 
            </div>
      		
            <div class="input-box">
            	<label for="shortprofile"><?php echo Mage::helper('marketplacepartner')->__('Description') ?></label>
					<textarea name="compdesi" id="shortprofile" cols="1" rows="3" class="areasize"  ><?php echo $partner['compdesi']; ?></textarea>
					<label class="desc">*few lines about your shop..</label>
            </div>  </li>
            
			        <!--li>
			            <div class="input-box">
			            <!-- <h4>File Upload</h4> -->
			            <!--label for="file"><?php //echo Mage::helper('marketplacepartner')->__('Avatar') ?></label>
			            <input type="file" name="avatar" style="height:25px;" size="33"><br clear="all"/>
			            </div>
			        </li-->
<!----------------------------------------------------BOF visibility mode ---------------------------------------------------------------->

			        		<?php $partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($this->getCustomer()->getId());
	if($partner['wantpartner']==1){
	if($partner['vacation']=='on')
		{
			$vac1='checked';
		}
		else
		{
			$vac2='checked';
		}?> <li>
			        			<div class="input-box">
								<label for="visibility"><?php echo Mage::helper('marketplacepartner')->__('Vacation') ?></label>
								<input type="radio" class="vacation" id="vacation1" name="vacation" value="on" onclick="visibility(this.value)" <?php echo $vac1 ?> ><?php echo "Vacation on" ?></input>
								<input type="radio" class="vacation" id="vacation2" name="vacation" value="off" onclick="visibility(this.value)" <?php echo $vac2 ?> ><?php echo "Vacation off" ?> </input>
								<div id="vs" class="msg">
										*if vacation is in 'on' mode means your products not available for buyers..
								</div>
							
							</div></li>
				        <?php } ?>
<!---------------------------------------------------EOF Visibility mode ----------------------------------------------------------------->	
					
						<div>
<!------------------------------------------storing product ids in the text box and array ------------------------------------------------>

							<?php  
								$store = Mage::app()->getStore();
								$storeId = $store->getId();
								$sellerid=Mage::getSingleton('customer/session')->getCustomer()->getId();
								$limit=9;
								$p=1;
								$rowdata=Mage::getModel('marketplacepartner/marketplacepartner')->getPartnerProducts($sellerid,$limit,$p);
								$j=0;
								foreach($rowdata as $key)
								{
									$totalprocollection[$j]=Mage::getModel('catalog/product')->load($key['mageproductid']);
									$totalfilterprocollection[$j]=Mage::getModel('catalog/product')->load($key['mageproductid']);
									$j++;
								}
								$_productCollection=$totalprocollection;
								$i=0;
								$proid=array();
								foreach ($_productCollection as $_product)
								{
									$proid[$i]=$_product->getId();?>
									<!--contains product id's -->
									<input id="prid<?php echo $i ?>" name="prid<?php echo $i ?>" type="hidden" value="<?php echo $proid[$i] ?>" />
									 
								<?php $i++; }
	
								//print_r($proid);?>
								<!-- contains the size of the product id's array -->
								<input id="size" name="size" type="hidden" value="<?php echo sizeof($proid) ?>" />
								<input id="storeid" name="storeid" type="hidden" value="<?php echo $store->getId(); ?>" />
	
						</div>
						<!-------------------------------------------------------EOF product id array-------------------------------------------------------->     
				</ul>
    		<!--td width="40%" align="center">
    			<?php //echo $this->getAvatar($this->getCustomer()->getId()); ?>
    		</td-->
	<hr>
	<h4 class="legend">Contact Details</h4>
	<?php 
	$partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($this->getCustomer()->getId());
	if($partner['wantpartner']==1){?> 
		<div class="field">
			<label for="twitterid" class="required"><?php echo Mage::helper('marketplacepartner')->__('Website') ?> </label>
			<div class="input-box">
				 <input type="text" id="website" name="website" value="<?php echo $partner['website']; ?>" title="website" class="input-text" />
			</div>
		</div>
	   <div class="field">
			<label for="twitterid" class="required"><?php echo Mage::helper('marketplacepartner')->__('Email') ?> </label>
			<div class="input-box">
				 <input type="text" id="email" name="shop_email" value="<?php echo $partner['shop_email']; ?>" title="shop_email" class="input-text" />
			</div>
		</div>
		<div class="field">
			<label for="twitterid" class="required"><?php echo Mage::helper('marketplacepartner')->__('Twitter ID') ?> </label>
			<div class="input-box">
				 <input type="text" id="twitterid" name="twitterid" value="<?php echo $partner['twitterid']; ?>" title="twitterid" class="input-text" />
			</div>
		</div>
		<div class="field">
			<label for="facebookid" class="required"><?php echo Mage::helper('marketplacepartner')->__('Facebook ID') ?> </label>
			<div class="input-box">
				 <input type="text" id="facebookid" name="facebookid" value="<?php echo $partner['facebookid']; ?>" title="facebookid" class="input-text" />
			</div>
		</div>
		<hr>
		<!--<div class="field">
			<label for="backgroundth" class="required"><?php echo Mage::helper('marketplacepartner')->__('Theme : Background Color') ?> </label>
			<div class="input-box">
				 <input type="text" id="backgroundth" name="backgroundth" value="<?php echo $partner['backgroundth']; ?>" title="backgroundth" class="input-text required-entry" />
				 <span class="color-pick" style="background-color:<?php echo $partner['backgroundth']; ?>"></span>
			</div>
		</div>-->
<!--**************************************************company banner********************************************-->
		<!--<div id="companybanner" class="field">
			<label for="bannerpic" class="required"> <?php echo Mage::helper('marketplacepartner')->__('Company Banner') ?> </label>
			<div class="input-box">
				 <img id="cban" class="prev-img" alt="<?php echo Mage::helper('marketplacepartner')->__('no image')?>" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'.$partner['bannerpic'];?>" width="100px" height="100px"/><br />
				 <input type="file" id="bannerpic" name="bannerpic"  title="bannerpic" class="input-text required-entry" style="display: none;" size="26" onchange="readBanner(this);"/>
				 <button type="button" value="Upload" onclick="document.getElementById('bannerpic').click();" >Upload</button>
				 <button type="button" class="rem" name="banrem" id="banrem" onclick="removecban();clearBannerField();"><span class="buttonlabel">Remove</span></button>
				 
				 
			</div>
		</div>-->
		

<!--**************************************************************company logo*********************************** -->		

		
				
<!-----------------------------------------------------------------------EOF--------------------------------------------------------------------------------- -->		
		<!--<div class="field">
			<label for="complocality" class="required"><?php echo Mage::helper('marketplacepartner')->__('Company Locality') ?></label>
			<div class="input-box">
				 <input type="text" id="complocality" name="complocality" value="<?php echo $partner['complocality']; ?>" title="complocality" class="input-text required-entry" />
			</div>
		</div>
		<div class="field">
			<label for="compname" class="required"><?php echo Mage::helper('marketplacepartner')->__('Company Name') ?></label>
			<div class="input-box">
				 <input type="text" id="compname" name="compname" value="<?php echo $partner['compname']; ?>" title="compname" class="input-text required-entry" /> 
			</div>
		</div>-->
		
<!-------------------------------------------------------------country logo------------------------------------------------------------------------------------ -->
		<!--<div id="countrylogo" class="field">
			<label for="countrypic" class="required"> <?php echo Mage::helper('marketplacepartner')->__('Country Logo') ?> </label>
			<div class="input-box">
				<img id="natpicprev" class="country-img-prev" alt="no image" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'. $partner['countrypic']; ?>" width="50px" height="50px"/> <br />
				 <input type="file" id="countrypic" name="countrypic"  title="countrypic" class="input-text required-entry" style="display: none;" onchange="readPic(this);" />
				 <button type="button" value="Upload" onclick="document.getElementById('countrypic').click();" >Upload</button>
				 
				 <button type="button" class="rem" name="logrem" id="logrem" onclick="removenatpic();clearCLogoField();"><span class="buttonlabel">Remove</span></button> <br />
			     
			</div>	
		</div>-->
<!------------------------------------------------------------------------EOF-------------------------------------------------------------------------------------- -->
		<!--<div class="field">
			<label for="compdesihtml" class="required"><?php echo Mage::helper('marketplacepartner')->__('Description in HTML') ?></label>
			<div class="input-box"> 
				 <textarea style="width:200px; overflow: auto;resize:none;" type="text" id="compdesihtml" name="compdesihtml" title="compdesihtml" class="input-text required-entry" ><?php echo $partner['compdesihtml']; ?> </textarea>
			</div>
		</div>
		<div class="field">
			<label for="compdesihtml" class="required"><?php echo Mage::helper('marketplacepartner')->__('Company Profile View') ?></label>
			<div class="input-box">
				<a class="btn-primary" id="cprofile" href="<?php echo $this->getUrl('marketplacepartner/'); ?>profile?id=<?php echo Mage::getSingleton('customer/session')->getCustomer()->getId(); ?>" target="_blank"><?php echo Mage::helper('marketplacepartner')->__('Click for profile view') ?></a>
			</div>
		</div>
		<div class="field">
			<label for="compdesihtml" class="required"><?php echo Mage::helper('marketplacepartner')->__('Company Store View') ?></label>
			<div class="input-box">
				<a class="btn-primary" id="cstore" href="<?php echo $this->getUrl('marketplacepartner/'); ?>store?id=<?php echo Mage::getSingleton('customer/session')->getCustomer()->getId(); ?>" target="_blank"><?php echo Mage::helper('marketplacepartner')->__('Click for store view') ?></a>
			</div>
		</div>
		<div class="field">
			<label for="compdesihtml" class="required"><?php echo Mage::helper('marketplacepartner')->__('Company Collection View') ?></label>
			<div class="input-box">
				<a class="btn-primary" id="ccollection" href="<?php echo $this->getUrl('marketplacepartner/'); ?>collection?id=<?php echo Mage::getSingleton('customer/session')->getCustomer()->getId(); ?>" target="_blank"><?php echo Mage::helper('marketplacepartner')->__('Click for collection view') ?></a>
			</div>
		</div> -->
	<?php } ?>
	
	<div class="button-set" style="margin:0">
	    <button type="submit" onclick="return valid2() " class="form-button btn_save savemargin"><span class="buttonlabel"><?php echo Mage::helper('marketplacepartner')->__('Save') ?></span></button>
	</div>
</fieldset>
</form>

<?php 
	$data=Mage::getModel('marketplaceprofile/paymentdetail')->getPartnerPaymentDetailById($this->getCustomer()->getId());
?>
<form action="<?php echo $this->getUrl('customer/account/payment') ?>" enctype="multipart/form-data" method="post" id="form-val">
	<fieldset class="group-select set_group" id="field3">
		<?php echo $this->getBlockHtml('formkey')?>
		<?php echo $this->getLayout()->createBlock('customer/address_book')->setTemplate('customer/address/book.phtml')->toHtml(); ?>
		<!--<h4 class="legend"><?php echo Mage::helper('marketplacepartner')->__('Payment Mode') ?></h4>
		<ul>
			<li>
				<!--<div class="input-box">
				<label for="paymentsource"><?php echo Mage::helper('marketplacepartner')->__('Payment Details') ?></label>
				<textarea name="paymentsource" id="paymentsource" title="payment source" cols="1" rows="3" style="width:375px; overflow: auto;resize:none;" ><?php echo $paymentDetail ?></textarea>
				</div>
				<div class="input-box">
			        <label for="name"><?php echo Mage::helper('marketplacepartner')->__('Bank Name') ?></label>
			        <input type="text" name="bank" id="bank" value="<?php echo $data['name']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Bank Name') ?>" class="input-text" />
			   </div>
			</li>
			<li>
				<div class="input-box">
			        <label for="account_no"><?php echo Mage::helper('marketplacepartner')->__('Account No.') ?></label>
			        <input type="text" name="accountno" id="accountno" value="<?php echo $data['accountno']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Account No') ?>" class="input-text" />
			   </div>			
			</li>
			<li>
				<div class="input-box">
			        <label for="routing_no"><?php echo Mage::helper('marketplacepartner')->__('Routing No.') ?></label>
			        <input type="text" name="routingno" id="routingno" value="<?php echo $data[routingno]; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Routing No') ?>" class="input-text" />
			   </div>			
			</li>
			<li>
				<div class="input-box">
			        <label for="account_type"><?php echo Mage::helper('marketplacepartner')->__('Account Type') ?></label>
			        <input type="text" name="accounttype" id="accounttype" value="<?php echo $data['accounttype']; ?>" title="<?php echo Mage::helper('marketplacepartner')->__('Account Type') ?>" class="input-text" />
			   </div>			
			</li>
			<li>
				<div class="input-box">
			        <label for="account_type"><?php echo Mage::helper('marketplacepartner')->__('Payment Method') ?></label>
			        <input type="hidden" value="<?php echo $data['paymentmethod']; ?>" id="method" />
					  <select name="paymentmethod" id="payment_method" class="account">
					  		<option>Please select</option>
							<option value="Bank Transfer">Bank Transfer</option>
							<option value="By Check">By Check</option>					  
					  </select>
			   </div>			
			</li>
			<li>
				<div class="input-box">
				<input type="hidden" name="userid" id="userid" value="<?php echo Mage::getSingleton('customer/session')->getCustomer()->getId(); ?>" title="userid" class="input-text"  />
				</div>
			</li>
		</ul>		
		<div class="button-set" style="margin:0">
			<button type="submit" class="form-button btn_save savemargin"><span><?php echo Mage::helper('marketplacepartner')->__('Save') ?></span></button>
		</div>-->
	</fieldset>
</form>

<!--<a href="<?php echo $this->getBackUrl() ?>" class="left btn_back">&laquo; <?php echo Mage::helper('marketplacepartner')->__('Back') ?></a>-->
</div>
</div>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>

<script type="text/javascript">
//<![CDATA[
    var dataForm = new VarienForm('form-validate', true);
    var dataForm1 = new VarienForm('form-val', true);
    function setPasswordForm(arg){
        if(arg){
            $('current_password').up(3).show();
            $('current_password').addClassName('required-entry');
            $('password').addClassName('required-entry');
            $('confirmation').addClassName('required-entry');

        }else{
            $('current_password').up(3).hide();
            $('current_password').removeClassName('required-entry');
            $('password').removeClassName('required-entry');
            $('confirmation').removeClassName('required-entry');
        }
    }
    <?php if($this->getCustomer()->getChangePassword()): ?>
        setPasswordForm(true);
    <?php endif; ?>
//]]>
</script>
<script>
(function($wk_jq){
	var current_method = $wk_jq("#method").val();
	$wk_jq("#payment_method").val(current_method);
	//$wk_jq("#field1").hide();
	$wk_jq(".personal").addClass('tab_click');		
	$wk_jq("#field2").hide();
	$wk_jq("#field3").hide();
	$wk_jq(function(){
		$wk_jq('.color-pick').ColorPicker({
			color: '<?php echo $partner['backgroundth']; ?>',
			onShow: function (colpkr) {
				$wk_jq(colpkr).fadeIn(500);
				return false;
			},
			onHide: function (colpkr) {
				$wk_jq(colpkr).fadeOut(500);
				return false;
			},
			onChange: function (hsb, hex, rgb) {
				$wk_jq('#backgroundth').val('#' + hex);
				$wk_jq('.color-pick').css('background-color','#'+hex);
			}
		});
	});
	$wk_jq("#tab1").click(function(){
		$wk_jq(".personal").addClass('tab_click');
		$wk_jq(".company").removeClass('tab_click');
		$wk_jq(".address").removeClass('tab_click');
		$wk_jq("#field1").show();	
		$wk_jq("#field2").hide();	
		$wk_jq("#field3").hide();	
	});
	$wk_jq("#tab2").click(function(){
		$wk_jq(".company").addClass('tab_click');
		$wk_jq(".personal").removeClass('tab_click');
		$wk_jq(".address").removeClass('tab_click');
		$wk_jq("#field1").hide();	
		$wk_jq("#field2").show();	
		$wk_jq("#field3").hide();	
	});
	$wk_jq("#tab3").click(function(){
		$wk_jq(".address").addClass('tab_click');
		$wk_jq(".personal").removeClass('tab_click');
		$wk_jq(".company").removeClass('tab_click');
		$wk_jq("#field1").hide();	
		$wk_jq("#field2").hide();	
		$wk_jq("#field3").show();	
	});
	
})(jQuery);
	
</script>
<script>
function information(inf)
{
	var id=document.getElementById('msg');
	if(inf==0)
	{
		//id.innerHTML="<font style='size:5px;color:blue'> *Your Products Will Now Be Visible In Front End </font>";
	}
	else
	{
		//id.innerHTML="<font style='size:5px;color:blue'> *Your Products Will Not Be Visible In Front End </font>";
	}
}
/*-------------------------------------------------------- removing company banner ------------------------------------------------------------------------------*/
function removecban()
	{	
		
		var d=document.getElementById('cban');
		
		d.src="<?php echo $this->getSkinUrl('customerurlpic/noimage.png'); ?>";
		
	
	
	}
/*-------------------------------------------------------- removing company logo ------------------------------------------------------------------------------*/
function removeclog()
	{	
		
		var d=document.getElementById('clogo');
		d.src="<?php echo $this->getSkinUrl('customerurlpic/noimage.png'); ?>"
		
	
	}
/*-------------------------------------------------------- removing national pic ------------------------------------------------------------------------------*/	
function removenatpic()
	{	
		
		var d=document.getElementById('natpicprev');
		d.src="<?php echo $this->getSkinUrl('customerurlpic/noimage.png'); ?>"
		
	
	}

/*-------------------------------------------------------- preview company banner ------------------------------------------------------------------------------*/
function readBanner(input) 
	{ 
		if (input.files && input.files[0]) 
		{
			var reader = new FileReader();
			reader.onload = function (e) 
			{
				
				jQuery("#cban").attr('src', e.target.result);
			}
			reader.readAsDataURL(input.files[0]);
		}
	}
/*-------------------------------------------------------- preview company logo ------------------------------------------------------------------------------*/
	function readLogo(input) 
	{ 
		if (input.files && input.files[0]) 
		{
			var reader = new FileReader();
			reader.onload = function (e) 
			{
				
			jQuery("#clogo").attr('src', e.target.result);
			}
			reader.readAsDataURL(input.files[0]);
		}
	}
/*-------------------------------------------------------- preview national logo ------------------------------------------------------------------------------*/
	function readPic(input) 
	{ 
		if (input.files && input.files[0]) 
		{
			var reader = new FileReader();
			reader.onload = function (e) 
			{
			
				jQuery("#natpicprev").attr('src', e.target.result);
			}
			reader.readAsDataURL(input.files[0]);
		}
	}
/*********************************************** see Account Controller for backend ******************************************************************************/
</script>
<script>
function clearBannerField() 
{

    document.getElementById('companybanner').innerHTML = document.getElementById('companybanner').innerHTML;
}
function clearLogoField() 
{

    document.getElementById('companylogo').innerHTML = document.getElementById('companylogo').innerHTML;
}
function clearCLogoField() 
{

    document.getElementById('countrylogo').innerHTML = document.getElementById('countrylogo').innerHTML;
}
function visibility(id)
{

var temp=jQuery.noConflict();
var idv=document.getElementById('vs')
	if(id=='on')
	{
		idv.innerHTML="<font style='size:5px;color:blue'>*Your products will not be visible in front end </font>";	
	}
	else
	{
		//idv.innerHTML="<font style='size:5px;color:blue'>*Your products are now visible in front end </font>";		
	}
}
</script>
<script type="text/javascript" >
function valid1(){
	var signupForm = new Validation('form-validate1');
	var result = signupForm.validate();
	if(result == true) {
		jQuery('#form-validate1').submit();
		return true;
	}
	else{
		return false;
	}
	}
function valid2(){
	var signupForm = new Validation('form-validate2');
	var result = signupForm.validate();
	if(result == true) {
		jQuery('#form-validate2').submit();
		return true;
	}
	else{
		return false;
	}
}
</script>
